#ifndef WEATHERLABLE_H
#define WEATHERLABLE_H

#include <QLabel>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonValue>
#include <QByteArray>
#include <QStandardItemModel>
#include <QHeaderView>
#include <QPainter>
#include <QUrl>

class weatherLable : public QLabel
{
    Q_OBJECT
public:
    explicit weatherLable(QWidget *parent = nullptr);
    ~weatherLable();
    void paintEvent(QPaintEvent * pe);
    void analysis(QByteArray byte);

public slots:
    void replyFinished(QNetworkReply *reply);
    void reRequest(QString code);

private:
    int size;
    QString time,city,parent,shidu,quality,wendu,high,low,ymd,week,sunrise,sunset,type,fx,fl,notice;
    QNetworkAccessManager * manager;

};

#endif // WEATHERLABLE_H
